<script setup lang="ts">
import { RouterView } from 'vue-router'
import router from '@/router'
import {provide} from "vue";
function GO(path:string,param:TParam,_self:boolean):void {
  router.push(path)
}
provide("go", GO)
//主题设置
import { theme } from "ant-design-vue";
import { useTheme } from "@/config"
const setTheme = useTheme()
//国际化设置
import zhCN from 'ant-design-vue/es/locale/zh_CN';
import enGB from 'ant-design-vue/es/locale/en_GB';
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';
import 'dayjs/locale/en-gb'
dayjs.locale('en-gb');
let locale = zhCN;
</script>

<template>
  <a-config-provider
      :theme="setTheme"
      :locale="locale"
  >
      <router-view/>
  </a-config-provider>
</template>

<style scoped>

</style>
